package com.hand.test02;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 马旭阳
 * @date2019/7/23
 */
@SpringBootApplication
@EnableEurekaClient
@RestController
@EnableSwagger2Doc
public class Order {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("/")
    public String index(){
        return "我是订单服务"+serverPort;
    }

    public static void main(String[] args) {
        SpringApplication.run(Order.class,args);

    }
}
